package com.hooya.fa.eu.biz.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hooya.fa.eu.biz.dao.entity.WmsKc;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2025/1/22
 * @Version 1.1.0
 */
@Mapper
public interface WmsKcMapper extends BaseMapper<WmsKc> {

    void insertBatchSomeColumn(List<WmsKc> list);

    @Select("select place, sku, sum(num) num, country from wms_kc group by place, sku, country")
    List<WmsKc> selectGroupList();
}
